<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>CSI udp to server: /home/shuspieler/Atheros-CSI-Tool-UserSpace-APP/recvCSI-with-socket/csi_fun.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CSI udp to server
   &#160;<span id="projectnumber">v1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/shuspieler/Atheros-CSI-Tool-UserSpace-APP/recvCSI-with-socket/csi_fun.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>basic csi processing fucntion  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdbool.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;fcntl.h&gt;</code><br />
<code>#include &quot;<a class="el" href="csi__fun_8h_source.html">csi_fun.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for csi_fun.c:</div>
<div class="dyncontent">
<div class="center"><img src="csi__fun_8c__incl.png" border="0" usemap="#_2home_2shuspieler_2Atheros-CSI-Tool-UserSpace-APP_2recvCSI-with-socket_2csi__fun_8c" alt=""/></div>
<map name="_2home_2shuspieler_2Atheros-CSI-Tool-UserSpace-APP_2recvCSI-with-socket_2csi__fun_8c" id="_2home_2shuspieler_2Atheros-CSI-Tool-UserSpace-APP_2recvCSI-with-socket_2csi__fun_8c">
<area shape="rect" id="node8" href="csi__fun_8h.html" title="head file for csi processing fucntion " alt="" coords="495,109,569,136"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a4918568b8b7021b777ae00bd7be2fc14"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4918568b8b7021b777ae00bd7be2fc14"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>csi_st_len</b>&#160;&#160;&#160;23</td></tr>
<tr class="separator:a4918568b8b7021b777ae00bd7be2fc14"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aed5f3e73e01248d8a2d6792a69081f9e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed5f3e73e01248d8a2d6792a69081f9e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_big_endian</b> ()</td></tr>
<tr class="separator:aed5f3e73e01248d8a2d6792a69081f9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a501a25d41e6e80a5bfcf1dd375a16bd7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a501a25d41e6e80a5bfcf1dd375a16bd7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>bit_convert</b> (int data, int maxbit)</td></tr>
<tr class="separator:a501a25d41e6e80a5bfcf1dd375a16bd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd68310d3f1cb2aca7abb7da551195d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd68310d3f1cb2aca7abb7da551195d0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fill_csi_matrix</b> (u_int8_t *csi_addr, int nr, int nc, int num_tones, <a class="el" href="structCOMPLEX.html">COMPLEX</a>(*csi_matrix)[3][114])</td></tr>
<tr class="separator:afd68310d3f1cb2aca7abb7da551195d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99fac622f5ac7ca70c01b972b07b93cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99fac622f5ac7ca70c01b972b07b93cf"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>open_csi_device</b> ()</td></tr>
<tr class="separator:a99fac622f5ac7ca70c01b972b07b93cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a207679327e5eaea46de448f0bb80ca86"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a207679327e5eaea46de448f0bb80ca86"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>close_csi_device</b> (int fd)</td></tr>
<tr class="separator:a207679327e5eaea46de448f0bb80ca86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3bb68539af1843371ac0554235dffae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3bb68539af1843371ac0554235dffae"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>read_csi_buf</b> (unsigned char *buf_addr, int fd, int BUFSIZE)</td></tr>
<tr class="separator:aa3bb68539af1843371ac0554235dffae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40a1ee251b887facc992e28711ebd8b6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40a1ee251b887facc992e28711ebd8b6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>record_status</b> (unsigned char *buf_addr, int cnt, <a class="el" href="structcsi__struct.html">csi_struct</a> *csi_status)</td></tr>
<tr class="separator:a40a1ee251b887facc992e28711ebd8b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0936a891497fb3413bc12df35a92b15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0936a891497fb3413bc12df35a92b15"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>record_csi_payload</b> (unsigned char *buf_addr, <a class="el" href="structcsi__struct.html">csi_struct</a> *csi_status, unsigned char *data_buf, <a class="el" href="structCOMPLEX.html">COMPLEX</a>(*csi_matrix)[3][114])</td></tr>
<tr class="separator:ad0936a891497fb3413bc12df35a92b15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa9350afae7ab5a1eac665b050736fc0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa9350afae7ab5a1eac665b050736fc0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>porcess_csi</b> (unsigned char *data_buf, <a class="el" href="structcsi__struct.html">csi_struct</a> *csi_status, <a class="el" href="structCOMPLEX.html">COMPLEX</a>(*csi_buf)[3][114])</td></tr>
<tr class="separator:afa9350afae7ab5a1eac665b050736fc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>basic csi processing fucntion </p>
<p>=====================================================================================</p>
<p>you can implement your own fucntion here</p>
<dl class="section version"><dt>Version</dt><dd>: 1.0</dd></dl>
<dl class="section author"><dt>Author</dt><dd>: Yaxiong Xie</dd></dl>
<p>Email : <a href="#" onclick="location.href='mai'+'lto:'+'xie'+'ya'+'xio'+'ng'+'fly'+'@g'+'mai'+'l.'+'com'; return false;">xieya<span style="display: none;">.nosp@m.</span>xion<span style="display: none;">.nosp@m.</span>gfly@<span style="display: none;">.nosp@m.</span>gmai<span style="display: none;">.nosp@m.</span>l.com</a></p>
<p>Organization: WANDS group @ Nanyang Technological University</p>
<p>Copyright (c) WANDS group @ Nanyang Technological University </p><hr/>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jun 28 2017 07:03:56 for CSI udp to server by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
